/*
 * @Descripttion:
 * @LastEditors: xzh
 * @LastEditTime: 2023-09-14 17:06:39
 */
import { btnTypeEnum, tableTool_Inf } from "@/components/dile-table/index.type";
import moldSparePower_Constants from "../power-moldSpare";

/*
 * @Descripttion:模具保养权限常量
 * @LastEditors: xzh
 * @LastEditTime: 2023-09-07 19:30:09
 */
export default class moldUpkeepPower_Constants extends moldSparePower_Constants {
  /**
   * @Author: xzh
   * @Descripttion: 模具保养计划工具栏
   * @Param:
   */
  static moldUpkeepPlanTools: Array<tableTool_Inf> = [
    {
      // t("table.btnArr.add"),
      label: "table.btnArr.add",
      code: "add",
      btnType: btnTypeEnum.button,
      plain: false,
      customBehavior: true,
    },
    {
      // t("table.btnArr.edit"),
      label: "table.btnArr.edit",
      code: "edit",
      btnType: btnTypeEnum.button,
      customBehavior: true,
    },
    {
      // t("table.btnArr.delete"),
      label: "table.btnArr.delete",
      code: "delete",
      btnType: btnTypeEnum.button,
      customBehavior: true,
    },
    {
      // t("table.btnArr.close"),
      label: "table.btnArr.close",
      code: "close",
      btnType: btnTypeEnum.button,
      customBehavior: true,
    },
    {
      // t("table.btnArr.import"),
      label: "table.btnArr.import",
      code: "import",
      btnType: btnTypeEnum.button,
      customBehavior: true,
    },
    {
      // t("table.btnArr.export"),
      label: "table.btnArr.export",
      code: "export",
      btnType: btnTypeEnum.button,
      customBehavior: true,
    },
    {
      // t("table.btnArr.search"),
      label: "table.btnArr.search",
      code: "keyWordFilter",
      btnType: btnTypeEnum.keyWordFilter,
      position: "right",
    },
  ];
  /**
   * @Author: xzh
   * @Descripttion: 模具保养记录工具栏
   * @Param:
   */
  static moldUpkeepRecordTools: Array<tableTool_Inf> = [
    {
      // t("page.equipUpkeepArr.upkeepRecordArr.btnArr.add"),
      label: "page.equipUpkeepArr.upkeepRecordArr.btnArr.add",
      code: "add",
      btnType: btnTypeEnum.button,
      plain: false,
      customBehavior: true,
    },
    {
      // t("page.equipUpkeepArr.upkeepRecordArr.btnArr.delete"),
      label: "page.equipUpkeepArr.upkeepRecordArr.btnArr.delete",
      code: "delete",
      btnType: btnTypeEnum.button,
      customBehavior: true,
    },
    {
      // t("page.equipUpkeepArr.upkeepRecordArr.btnArr.adjustTask"),
      label: "page.equipUpkeepArr.upkeepRecordArr.btnArr.adjustTask",
      code: "edit",
      btnType: btnTypeEnum.button,
      customBehavior: true,
    },
    {
      // t("table.btnArr.import"),
      label: "table.btnArr.import",
      code: "import",
      btnType: btnTypeEnum.button,
      customBehavior: true,
    },
    {
      // t("table.btnArr.export"),
      label: "table.btnArr.export",
      code: "export",
      btnType: btnTypeEnum.button,
      customBehavior: true,
    },
    {
      // t("table.btnArr.search"),
      label: "table.btnArr.search",
      code: "keyWordFilter",
      btnType: btnTypeEnum.keyWordFilter,
      position: "right",
    },
  ];
  /**
   * @Author: xzh
   * @Descripttion: 模具保养项目工具栏
   * @Param:
   */
  static moldUpkeepItemTools: Array<tableTool_Inf> = [
    {
      // t("table.btnArr.add"),
      label: "table.btnArr.add",
      code: "add",
      btnType: btnTypeEnum.button,
      plain: false,
      customBehavior: true,
    },
    {
      // t("table.btnArr.edit"),
      label: "table.btnArr.edit",
      code: "edit",
      btnType: btnTypeEnum.button,
      customBehavior: true,
    },
    {
      // t("table.btnArr.delete"),
      label: "table.btnArr.delete",
      code: "delete",
      btnType: btnTypeEnum.button,
      customBehavior: true,
    },
    {
      // t("table.btnArr.enable"),
      label: "table.btnArr.enable",
      code: "enable",
      btnType: btnTypeEnum.button,
      customBehavior: true,
    },
    {
      // t("table.btnArr.disEnable"),
      label: "table.btnArr.disEnable",
      code: "disEnable",
      btnType: btnTypeEnum.button,
      customBehavior: true,
    },
    {
      // t("table.btnArr.search"),
      label: "table.btnArr.search",
      code: "keyWordFilter",
      btnType: btnTypeEnum.keyWordFilter,
      position: "right",
    },
  ];
}
